import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

import vuexpersist from "vuex-persist";

export default new Vuex.Store({
  state: {
    left1:'',
    top1:'',
  },
  mutations: {
    left1(state,c){
      state.left1=c+'px'
    },
    top1(state,c){
      state.top1=c+'px'
    },

    left2(state,c){
      state.left2=c+'px'
    },
    top2(state,c){
      state.top2=c+'px'
    }
,

    left3(state,c){
      state.left3=c+'px'
    },
    top3(state,c){
      state.top3=c+'px'
    }


,
    left4(state,c){
      state.left4=c+'px'
    },
    top4(state,c){
      state.top4=c+'px'
    },


    left5(state,c){
      state.left5=c+'px'
    },
    top5(state,c){
      state.top5=c+'px'
    }
  },
  actions: {
  },
  modules: {
  },
  plugins:[
    new vuexpersist({
      storage:window.localStorage
    }).plugin
  ]
})
